import request from '@/utils/request'

//  查询连接信息通过connectKey
export function fetchConnectInfoByConnectKey(query) {
  return request({
    url: 'modal/getConnectInfoByConnectKey',
    method: 'get',
    params: query
  })
}

//  通过connectKey更新连接信息
export function updateConnectInfoByConnectKey(query) {
  return request({
    url: 'modal/updateConnectInfoByConnectKey',
    method: 'get',
    params: query
  })
}

//  增加新的连接信息
export function addConnectInfo(query) {
  return request({
    url: 'modal/addConnectInfo',
    method: 'get',
    params: query
  })
}
// 通过connectKey删除该连接

export function deleteConnectInfoByConnectKey(query) {
  return request({
    url: 'modal/deleteConnectInfoByConnectKey',
    method: 'get',
    params: query
  })
}
